package cn.ruleengine.client;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;


@Data
@Configuration
@ConfigurationProperties( prefix = "rule.engine")
public class RuleEngineProperties {

//    /**
//     * 规则引擎调用地址
//     */
//    private String baseUrl = "http://ruleserver.cn";
    /**
     * 工作空间code
     */
    private String workspaceCode = "default";

    private String accessKeyId = "root";

    private String accessKeySecret = "123456";

//    private FeignConfig feignConfig = new FeignConfig();
//
//    @Data
//    public static class FeignConfig {
//        private Request request = new Request();
//        private Retryer retryer = new Retryer();
//        @Data
//        public static class Request {
//            private int connectTimeoutMillis = 6000;
//            private int readTimeoutMillis = 3500;
//        }
//        @Data
//        public static class Retryer {
//            private long period = 2000;
//            private long maxPeriod = 2000;
//            private int maxAttempts = 3;
//        }
//    }
}
